# Contributor: Sören Tempel <soeren+alpine@soeren-tempel.net"
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=libowfat
pkgver=0.33
pkgrel=0
pkgdesc="Reimplementation of libdjbr"
url="http://www.fefe.de/libowfat/"
arch="all"
license="GPL-2.0-only"
subpackages="$pkgname-dev $pkgname-doc"
source="https://www.fefe.de/libowfat/libowfat-$pkgver.tar.xz"

build() {
	make CFLAGS="$CFLAGS -I$builddir" -j1
}

package() {
	make prefix="$pkgdir"/usr \
		MAN3DIR="$pkgdir"/usr/share/man/man3 \
		install

	# buffer manpage conflicts with openssl
	mv "$pkgdir"/usr/share/man/man3/buffer.3 \
		"$pkgdir"/usr/share/man/man3/owfatbuffer.3
}

sha512sums="
03a56bcbc1a58e340c473d260877218a35841a6915a8369381d74463244cd754fc736006344814855c4d33598ad811d51b7fff4ba41c5e6d38d56297903dcaf5  libowfat-0.33.tar.xz
"
